package def

type Netty interface {
	Start()
	Stop()
	SendWaitAck(addr string, msg []byte) (string, error)
}

type NettyDeviceMsg struct {
	Imei    string
	Cmd     int8
	Payload []byte
	Addr    string
}

type XiaoanPackge struct {
	Imei       string
	Cmd        uint8
	PackageSn  uint8
	PackageLen uint16
	Payload    []uint8
}
